package cn.stylefeng.guns.modular.cb.mapper;

import cn.stylefeng.guns.modular.cb.entity.CbEducation;
import cn.stylefeng.guns.modular.cb.model.params.CbEducationParam;
import cn.stylefeng.guns.modular.cb.model.result.CbEducationResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wj
 * @since 2021-01-06
 */
public interface CbEducationMapper extends BaseMapper<CbEducation> {

    /**
     * 获取列表
     *
     * @author wj
     * @Date 2021-01-06
     */
    List<CbEducationResult> customList(@Param("paramCondition") CbEducationParam paramCondition);

    /**
     * 获取map列表
     *
     * @author wj
     * @Date 2021-01-06
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") CbEducationParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author wj
     * @Date 2021-01-06
     */
    Page<CbEducationResult> customPageList(@Param("page") Page page, @Param("paramCondition") CbEducationParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author wj
     * @Date 2021-01-06
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") CbEducationParam paramCondition);

    /**
     * 获取校友
     * @param paramCondition
     * @return
     */
    List<CbEducationResult> alumniList(@Param("paramCondition") CbEducationParam paramCondition);

    /**
     * 职位列表
     * @param schoolNo
     * @return
     */
    List<CbEducationResult> listProfession(@Param("schoolNo") String schoolNo);

    /**
     * 获取教育
     * @param paramCondition
     * @return
     */
    CbEducationResult getCbEducation(@Param("paramCondition") CbEducationParam paramCondition);
}
